﻿<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPageAdmin.master" AutoEventWireup="true"
    CodeFile="Model.aspx.cs" Inherits="Model" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div>
        <asp:MultiView ID="MultiView1" runat="server">
            <asp:View ID="View1" runat="server">
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                        <asp:GridView ID="GridView1" runat="server" AllowPaging="true" Width="100%" BackColor="White" BorderColor="#999999"
                            BorderStyle="Solid" BorderWidth="1px" CellPadding="3" ForeColor="Black" GridLines="Vertical"
                            OnRowDeleting="GridView1_RowDeleting" 
                            OnRowUpdating="GridView1_RowUpdating" OnRowEditing="GridView1_RowEditing" 
                            onpageindexchanging="GridView1_PageIndexChanging">
                            <RowStyle HorizontalAlign="Center" />
                            <Columns>
                                <asp:CommandField ShowEditButton="True" />
                                <asp:CommandField ShowDeleteButton="True" />
                            </Columns>
                            <FooterStyle BackColor="#CCCCCC" />
                            <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
                            <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                            <AlternatingRowStyle BackColor="#CCCCCC" />
                        </asp:GridView>
                    </ContentTemplate>
                    <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="DropDownList1" EventName="SelectedIndexChanged" />
                    </Triggers>
                </asp:UpdatePanel>
                <br />
                &nbsp;<asp:Button ID="btnThemMoi" runat="server" Text="Thêm m&#7899;i" OnClick="btnThemMoi_Click" />
            </asp:View>
            <asp:View ID="View2" runat="server">
                <fieldset>
                    <legend>Chi Ti&#7871;t</legend>
                    <table style="width: 350px; text-align: center" border="0" cellpadding="5px" cellspacing="0">
                        <tr>
                            <td>
                                Hãng xe
                            </td>
                            <td style="text-align: left">
                                <asp:DropDownList ID="DropDownList1" runat="server">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;
                            </td>
                            <td style="text-align: left">
                                <asp:TextBox ID="txtModelID" runat="server" ReadOnly="True" Width="151px" Visible="False"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Model
                            </td>
                            <td style="text-align: left">
                                <asp:TextBox ID="txtmodel" runat="server" Width="154px" OnTextChanged="txtmodel_TextChanged"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: right">
                                <asp:Button ID="btnUpdate" runat="server" Text="Update" OnClick="btnUpdate_Click" />
                            </td>
                            <td style="text-align: left">
                                <asp:Button ID="btnList" runat="server" Text="List" Width="45px" OnClick="btnList_Click" />
                            </td>
                        </tr>
                    </table>
                </fieldset>
            </asp:View>
        </asp:MultiView>
    </div>
</asp:Content>
